<h1>CulturalHeritage::Incidences#gallery</h1>
<h1>Galeria de <%= @cultural_heritage_incidence.name %></h1>
<br />
<div class="field">
    <b>Descripcion</b>
    <%= @cultural_heritage_incidence.description %>
</div>
<% if @cultural_heritage_incidence_avatars.size > 0 %>

<br></br>
<table class="paginated_table sorted_table">
  <thead>
  <tr>
     <th>Imagen</th>
      <th>Título</th>
       <th>Descripción</th>
        <th></th>
  </tr>
</thead>
<tbody>
    <% @cultural_heritage_incidence_avatars.each do |cultural_heritage_cultural_heritage_avatar| %>
    <tr>
      <td><a href="<%=cultural_heritage_incidence_avatar.avatar.url%>" rel="lightbox[roadtrip]" title="<%cultural_heritage_incidence_avatar.avatar.title%>" ><img src="<%cultural_heritage_incidence_avatar.avatar.avatar.url%>" width="100" height="100" /></a></td>
      <td><%cultural_heritage_incidence_avatar.avatar.title%></td>
      <td><%cultural_heritage_incidence_avatar.avatar.description%></td>
      <td>
      <%= link_to image_tag("navi/cross-16-ns.png", :border => 0, :title => 'Eliminar'),{:controller=>"/cultural_heritage/incidences", :action => 'delete_photo', :id => cultural_heritage_incidence_avatar.avatar.id},{:confirm => 'Esta seguro?'} %>
      </td>
    </tr>
    <% end %>
    </tbody>
</table>
<% else %>
  <p>Ninguna foto encontrada</p>
<% end %>
<br />

<%= link_to 'Nueva foto',{:controller=>"/cultural_heritage/incidences",:action => 'new_photo',:id => @cultural_heritage_cultural_heritage.id}%>|
<%= link_to 'Regresar',{:controller=>"/cultural_heritage/incidences",:action => 'show',:id => @cultural_heritage_cultural_heritage.id}%>
